package edu.guigu.appquickstart;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import edu.guigu.appquickstart.activity.AHomeActivity;
import edu.guigu.appquickstart.adapterview.AdapterviewActivity;
import edu.guigu.appquickstart.base.BaseActivity;
import edu.guigu.appquickstart.datastore.DataStoreActivity;
import edu.guigu.appquickstart.recyclerview.RecyclerviewActivity;
import edu.guigu.appquickstart.simpleview.VHomeActivity;

public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // 设置内容视图
        setContentView(R.layout.activity_main);
    }

    public void toAHomeActivity(View view) {
        Intent intent = new Intent(this, AHomeActivity.class);
        startActivity(intent);
    }

    public void toVHomeActivity(View view) {
        Intent intent = new Intent(this, VHomeActivity.class);
        startActivity(intent);
    }

    public void toAdapterviewActivity(View view) {
        Intent intent = new Intent(this, AdapterviewActivity.class);
        startActivity(intent);
    }

    public void toRecyclerviewActivity(View view) {
        Intent intent = new Intent(this, RecyclerviewActivity.class);
        startActivity(intent);
    }

    public void toDataStoreActivity(View view){
        Intent intent = new Intent(this, DataStoreActivity.class);
        startActivity(intent);
    }
}